package com.example.springboot1.delay;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author ckj
 * @description TODO
 * @date 2022-09-26 14:56
 */


@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum RedisDelayQueueEnum {

    START("START","启动延迟队列", "startDelay"),
//    REPOSE_TIMEOUT("REPOSE_TIMEOUT","你有故障已超过响应时间，请及时处理。", "responseDelay"),
    FIX_TIMEOUT("FIX_TIMEOUT", "你有故障已超过维修时间，请及时处理。", "fixDelay");

    /**
     * 延迟队列 Redis Key
     */
    private String code;

    /**
     * 中文描述
     */
    private String name;

    /**
     * 延迟队列具体业务实现的 Bean
     * 可通过 Spring 的上下文获取
     */
    private String beanId;

}

